package com.yunzone.cloud.modules;


import com.yunzone.cloud.common.entity.Result;
import com.yunzone.cloud.modules.payment.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Service
@FeignClient(value="payment-provider",fallback = PaymentFallbackService.class)
//@FeignClient(value="payment-provider")
public interface PaymentService {
    @RequestMapping("/payment/query/{id}")
    public Result<Payment> query(@PathVariable("id") Long id);
}
